<?php

class Create_Images_Table {
  /**
   * Make changes to the database.
   *
   * @return void
   */
  public function up() {
    Schema::create('images', function($table) {
      $table->increments('id');
      $table->string('url', '1024');
      $table->integer('product_id');
      $table->timestamps();
    });
  }

  /**
   * Revert the changes to the database.
   *
   * @return void
   */
  public function down() {
    Schema::drop('images');
  }
}

